package com.koron.common.core.business.weather.bean;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class WeatherDto {

    @ApiModelProperty("返回状态")
    @JSONField(name = "status")
    private String status;

    @ApiModelProperty("返回结果总数目")
    @JSONField(name = "count")
    private String count;

    @ApiModelProperty("返回的状态信息")
    @JSONField(name = "info")
    private String info;

    @ApiModelProperty("返回状态说明,10000代表正确")
    @JSONField(name = "infocode")
    private String infocode;

    @ApiModelProperty("实况天气数据信息")
    @JSONField(name = "lives")
    private List<LivesDTO> lives;

    @NoArgsConstructor
    @Data
    public static class LivesDTO {

        @ApiModelProperty("省份名")
        @JSONField(name = "province")
        private String province;

        @ApiModelProperty("城市名")
        @JSONField(name = "city")
        private String city;

        @ApiModelProperty("区域编码")
        @JSONField(name = "adcode")
        private String adcode;

        @ApiModelProperty("天气现象（汉字描述）")
        @JSONField(name = "weather")
        private String weather;

        @ApiModelProperty("实时气温，单位：摄氏度")
        @JSONField(name = "temperature")
        private String temperature;

        @ApiModelProperty("风向描述")
        @JSONField(name = "winddirection")
        private String winddirection;

        @ApiModelProperty("风力级别，单位：级")
        @JSONField(name = "windpower")
        private String windpower;

        @ApiModelProperty("空气湿度")
        @JSONField(name = "humidity")
        private String humidity;

        @ApiModelProperty("数据发布的时间")
        @JSONField(name = "reporttime")
        private String reporttime;
    }
}
